package com.zonda.autosample;

import com.google.auto.value.AutoValue;

import android.os.Parcelable;

import java.util.ArrayList;

@AutoValue
public abstract class AppNewsResult implements Parcelable{

  abstract ArrayList<NewsModel> getListDatas();

  @AutoValue.Builder
  abstract static class Builder{

    abstract Builder setListDatas(ArrayList<NewsModel> listDatas);

    abstract AppNewsResult build();
  }

  public static AppNewsResult create(ArrayList<NewsModel> listDatas){
    return new AutoValue_AppNewsResult(listDatas);
  }

  public static Builder builder(){
    return new AutoValue_AppNewsResult.Builder();
  }
}
